# -*- coding: utf-8 -*- 

from random import choice

# Stolen from django.contrib.auth.models
def random_shortcut(
    allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789',
    length=4):
    return ''.join([choice(allowed_chars) for i in range(length)])